﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HomeWork5
{
    public class Client : IComparable
    {
        public string ClientName { get; set; }
        public Client() { }
        public Client(string ClientName)
        {
            this.ClientName = ClientName;
        }
        public int CompareTo(object obj)
        {
            Client client = obj as Client;
            if (client == null)
                throw new NotImplementedException();
            return this.ClientName.CompareTo(client.ClientName);
        }
        public override string ToString()
        {
            return this.ClientName;
        }
    }
}
